package day10zy.pilot;

import day10zy.sedan.Sedan;

public class Aircraft {
    private int zizhong;
    private int gaodu;
    private String type;
    public void setZizhong(int zizhong) {
        this.zizhong = zizhong;
    }

    public void setGaodu(int gaodu) {
        this.gaodu = gaodu;
    }

    public int getZizhong() {
        return zizhong;
    }

    public int getGaodu() {
        return gaodu;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public Aircraft(){

    }
    public  Aircraft(int zizhong,int gaodu,String type){
        this.zizhong = zizhong;
        this.gaodu = gaodu;
        this.type = type;
    }
    public void jieshao(){
        System.out.println("这是一架"+type+"自重"+zizhong+"飞行高度"+gaodu);
    }
    public void takeup(){
        System.out.println(type+"开始起飞");
    }
    public void jiasu(){
        System.out.println(type+"正在加速");
    }
    public void jiangluo(){
        System.out.println(type+"正在降落");
    }
}
class keji extends Aircraft{
    int zuowei;

    public void setZuowei(int zuowei) {
        this.zuowei = zuowei;
    }

    public int getZuowei() {
        return zuowei;
    }

    public keji(int zizhong, int gaodu, String type, int zuowei){
        super(zizhong,gaodu,type);
        super.jieshao();
        super.takeup();
        super.jiasu();
        super.jiangluo();
        this.zuowei = zuowei;
    }
    @Override
    public void jieshao() {
        super.jieshao();
        System.out.println("座位"+zuowei);
    }
}
class zhandouji extends Aircraft{
    int dantou;

    public void setDantou(int dantou) {
        this.dantou = dantou;
    }

    public int getDantou() {
        return dantou;
    }

    public zhandouji(int zizhong, int gaodu, String type, int dantou){
        super(zizhong,gaodu,type);
        super.jieshao();
        super.takeup();
        super.jiasu();
        super.jiangluo();
        this.dantou = dantou;
    }
    public void jieshao(int zizhong,int gaodu,String type,int dantou){
        System.out.println("这是一架"+type+"自重"+zizhong+"飞行高度"+gaodu+"弹头"+dantou);
    }
    public void fashe(String type){
        System.out.println(type+"发射导弹"+dantou+"枚");
    }
    public void panxuan(String type){
        System.out.println(type+"在低空盘旋");
    }
}